package cn.hwadee.muying.mapper;

import cn.hwadee.muying.commons.page.MyPage;
import cn.hwadee.muying.dto.Client;
import cn.hwadee.muying.entity.User;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @创建人 skiner
 * @创建时间 2018/8/6
 * @描述
 */
@Mapper
@Component("clientMapper")
public interface ClientMapper extends BaseMapper<Client> {

    List<Client> list(@Param("page")MyPage<Client> page, @Param("cUser")User cUser,
                      @Param("old") Boolean old,@Param("keyword") String keyword) throws Exception;

    Client selectByAccount(@Param("account") String account) throws  Exception;


}
